package com.yuzhi.master.drainStPptnr.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuzhi.common.core.mapper.BaseMapperPlus;
import com.yuzhi.master.drainStPptnr.domain.bo.DrainStPptnRDayBo;
import com.yuzhi.master.drainStPptnr.domain.entity.DrainStPptnRDay;
import com.yuzhi.master.drainStPptnr.domain.vo.DrainStPptnRDayVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 降水量统计表(日表) - 雨情 Mapper 接口
 */
@Mapper
public interface DrainStPptnRDayMapper extends BaseMapperPlus<DrainStPptnRDayMapper, DrainStPptnRDay, DrainStPptnRDayVo> {

    /**
     * 分页查询日表数据（带站点名称）
     */
    Page<DrainStPptnRDayVo> listDayData(
            @Param("page") Page<DrainStPptnRDayVo> page,
            @Param("ew") Wrapper<DrainStPptnRDayBo> queryWrapper
    );

    /**
     * 不分页查询日表数据（带站点名称）
     */
    List<DrainStPptnRDayVo> listAllDayData(
            @Param("ew") Wrapper<DrainStPptnRDayBo> queryWrapper
    );

}